<?php

use Drupal\shusy_sweepstake\Entity\ShusySweepstake;
use Drupal\shusy_sweepstake\Entity\ShusySweepstakeItem;
use Drupal\shusy_sweepstake\Entity\ShusySweepstakeLog;

function shusy_sweepstake_shusy_sweepstake_add_page() {
  $e = new ShusySweepstake();
  module_load_include('inc', 'shusy_sweepstake', 'shusy_sweepstake.forms');
  return drupal_get_form('shusy_sweepstake_shusy_sweepstake_entity_form', $e, 'add');
}

function shusy_sweepstake_shusy_sweepstake_view_page(ShusySweepstake $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_sweepstake_shusy_sweepstake_edit_page(ShusySweepstake $e) {
  module_load_include('inc', 'shusy_sweepstake', 'shusy_sweepstake.forms');
  return drupal_get_form('shusy_sweepstake_shusy_sweepstake_entity_form', $e, 'edit');
}

function shusy_sweepstake_shusy_sweepstake_delete_page(ShusySweepstake $e) {
  module_load_include('inc', 'shusy_sweepstake', 'shusy_sweepstake.forms');
  return drupal_get_form('shusy_sweepstake_shusy_sweepstake_delete_form', $e);
}

function shusy_sweepstake_shusy_sweepstake_item_add_page() {
  $e = new ShusySweepstakeItem();
  module_load_include('inc', 'shusy_sweepstake', 'shusy_sweepstake.forms');
  return drupal_get_form('shusy_sweepstake_shusy_sweepstake_item_entity_form', $e, 'add');
}

function shusy_sweepstake_shusy_sweepstake_item_view_page(ShusySweepstakeItem $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_sweepstake_shusy_sweepstake_item_edit_page(ShusySweepstakeItem $e) {
  module_load_include('inc', 'shusy_sweepstake', 'shusy_sweepstake.forms');
  return drupal_get_form('shusy_sweepstake_shusy_sweepstake_item_entity_form', $e, 'edit');
}

function shusy_sweepstake_shusy_sweepstake_item_delete_page(ShusySweepstakeItem $e) {
  module_load_include('inc', 'shusy_sweepstake', 'shusy_sweepstake.forms');
  return drupal_get_form('shusy_sweepstake_shusy_sweepstake_item_delete_form', $e);
}

function shusy_sweepstake_shusy_sweepstake_log_add_page() {
  $e = new ShusySweepstakeLog();
  module_load_include('inc', 'shusy_sweepstake', 'shusy_sweepstake.forms');
  return drupal_get_form('shusy_sweepstake_shusy_sweepstake_log_entity_form', $e, 'add');
}

function shusy_sweepstake_shusy_sweepstake_log_view_page(ShusySweepstakeLog $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_sweepstake_shusy_sweepstake_log_edit_page(ShusySweepstakeLog $e) {
  module_load_include('inc', 'shusy_sweepstake', 'shusy_sweepstake.forms');
  return drupal_get_form('shusy_sweepstake_shusy_sweepstake_log_entity_form', $e, 'edit');
}

function shusy_sweepstake_shusy_sweepstake_log_delete_page(ShusySweepstakeLog $e) {
  module_load_include('inc', 'shusy_sweepstake', 'shusy_sweepstake.forms');
  return drupal_get_form('shusy_sweepstake_shusy_sweepstake_log_delete_form', $e);
}

